﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>File Manager Plugin</title>
    <!--[if lt IE 8]>
        <link rel="stylesheet" href="Content/blueprint/ie.css" type="text/css" media="screen, projection">        
    <![endif]-->
    @Styles.Render("~/Content/blueprint/screen.css")

    @Styles.Render("~/Content/File/Admin/File.css")
    @Styles.Render("~/Content/themes/base/jquery-ui.css")
</head>
<body style="background:#E1E1E1">
    <div id="_manager" style="clear:both">
    
    </div>
    <div style="clear:both">
        
        <input type="button" value="Select" onclick="onSelect(); return;" />
    </div>
    

    @Scripts.Render("~/bundles/jquery")
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.20.min.js")" type="text/javascript"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.fileupload.js")"></script>

    <script type="text/javascript" language="javascript">
        // set active for top menu
        $(document).ready(function () {
            $('#_manager').html("loading...");
            $.get('@Url.Action("GetManagerView", "File")', function (data) {
                $('#_manager').html(data);
            });
        });

        function onSelect()
        {
            window.parent.returnValue = selectedFilePath;
            window.top.close();
        }
    </script>
</body>
</html>
